<?php

namespace forfun\controller;

use forfun\service\CommentService;
use restphp\http\RestHttpRequest;

/**
 * @RequestMapping ("/api/v1/comments")
 */
class ApiCommentController {
    /**
     * @Post ("/{id}/actions/favour")
     * @Logon
     * @return void
     */
    public function addFavour() {
        $id = RestHttpRequest::getPathValue('id');
        CommentService::addFavour($id);
    }
}